/**
 * @Classname JsonResult
 * @Description TODO
 * @author Tale-Mi
 * @date 2019/5/9 15:24
 */
package org.tale.mscp.infrastructure.enums;

import lombok.Getter;

@Getter
public enum JsonResult {
    tokenUnValid(-1, "token校验失败"),
    success(1, "成功"),
    other(2, "其他"),
    fail(-2, "失败");

    private final Integer value;
    private final String description;

    // 构造器默认也只能是private, 从而保证构造函数只能在内部使用
    JsonResult(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

}
